package event

type EventChannel struct {
	service				interface{}
	eventChannel 		chan IEvent
}

func (c *EventChannel) GetEventHandler() IEventHandler {
	return c.service.(IEventHandler)
}

func (c *EventChannel) Init(s interface{}) {
	c.service = s
	c.eventChannel = make(chan IEvent,100)
}

func (c *EventChannel) OnClose() {

}

func (c *EventChannel) GetChannel() chan IEvent {
	return c.eventChannel
}